Send SSH commands via script
- in HA terminal
ssh-keygen
cp /root/.ssh /config/ssh
- include this in beginning of
shell_command
->ssh -i /config/ssh/id_rsa -o 'StrictHostKeyChecking=no' username@remote_IP 'touch newfile.txt'
Credits
- [link](https://siytek.com/home-assistant-shell/#:~:text=When executing shell commands in Home Assistant%2C the,integration comes when you combine it with SSH.)